package com.example.data.factory.common.Dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;

@Data
public class LoginDto {
    @ApiModelProperty("登录账号，字符串类型，确保唯一性，用于用户登录验证，非空")
    @Max(value = 20, message = "账号最长为20个字符")
    private String loginAccount;

    @ApiModelProperty("登录密码")
    @Max(value = 20, message = "密码最长为20个字符")
    private String password;
}
